package com.guxiuwei.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.sql.Blob;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 谷秀伟
 * @since 2023-03-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Leaves对象", description="")
public class Leaves implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "请假单号")
      @TableId(value = "lid", type = IdType.AUTO)
    private Long lid;

    @ApiModelProperty(value = "请假人姓名")
    private String name;

    @ApiModelProperty(value = "请假人部门")
    private String department;

    @ApiModelProperty(value = "请假开始日")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date startday;

    @ApiModelProperty(value = "请假结束日")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date endday;

    @ApiModelProperty(value = "请假类别")
    private String category;

    @ApiModelProperty(value = "审批人")
    private String uname;

    @ApiModelProperty(value = "审批人部门")
    private String department1;

    @ApiModelProperty(value = "审批人联系方式")
    private String phone;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "附件证明地址")
    private String attachment;


}
